package com.study.bean;

import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.boot.autoconfigure.condition.ConditionalOnNotWebApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @desc:
 * @author: panxiyi
 * @date: 2023/5/20 3:18 下午
 */


//@ConditionalOnClass(Mouse.class)
//@ConditionalOnClass(name = "com.study.bean.Mouse")
//   @ConditionalOnMissingClass("com.study.bean.Mouse")

@ConditionalOnBean(name = "jerry")
@ConditionalOnMissingClass("com.study.bean.Dog")
@ConditionalOnNotWebApplication
@Component("tom")
public class Cat {
}
